package com.sz.common.base.entity;

import java.util.Date;

/**
 * Function: 版本控制基类. <br>
 * Date: 2017年03月07日 14:28 <br>
 * Author: wentao.chang
 */
public class VersionEntityBase extends EntityBase implements VersionEntity {

    /**
     * 主键id
     */
    private Integer id;

    /**
     * uid
     */
    private String uid;

    /**
     * 是否激活
     */
    private Boolean isActive = false;

    /**
     * 是否删除
     */
    private Boolean isDeleted = false;

    /**
     * 激活开始时间
     */
    private Date activeTime;

    /**
     * 激活开始时间
     */
    private Date inactiveTime;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 上次更新时间
     */
    private Date lastUpdateTime;

    /**
     * 创建人
     */
    private Integer createUserId = 0;

    /**
     * 上次更新人
     */
    private Integer lastUpdateUserId = 0;

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public Boolean getIsActive() {
        return isActive;
    }

    @Override
    public void setIsActive(Boolean active) {
        isActive = active;
    }

    @Override
    public Date getActiveTime() {
        return activeTime;
    }

    @Override
    public void setActiveTime(Date activeTime) {
        this.activeTime = activeTime;
    }

    @Override
    public Date getInactiveTime() {
        return inactiveTime;
    }

    @Override
    public void setInactiveTime(Date inactiveTime) {
        this.inactiveTime = inactiveTime;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    @Override
    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    @Override
    public Integer getCreateUserId() {
        return createUserId;
    }

    @Override
    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    @Override
    public Integer getLastUpdateUserId() {
        return lastUpdateUserId;
    }

    @Override
    public void setLastUpdateUserId(Integer lastUpdateUserId) {
        this.lastUpdateUserId = lastUpdateUserId;
    }

    @Override
    public Boolean getIsDeleted() {
        return isDeleted;
    }

    @Override
    public void setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }


    @Override
    public String getUid() {
        return uid;
    }

    @Override
    public void setUid(String uid) {
        this.uid = uid;
    }

    public Boolean getDeleted() {
        return isDeleted;
    }

    public void setDeleted(Boolean deleted) {
        isDeleted = deleted;
    }
}
